package com.ctrip.ec.api.admin.model.topic;

import com.ctrip.ec.biz.entity.topic.TopicContentEntity;
import com.ctrip.ec.biz.entity.topic.TopicEntity;

import java.util.List;

/**
 * Created by jiangzy on 2018/10/11.
 */
public class TopicModel extends TopicEntity {
    public  TopicModel(){}
    public  TopicModel(TopicEntity entity){
        for(String col : entity.property().getColumns()){
            this.fieldValue(col,entity.fieldValue(col));
        }
    }

    private List<TopicContentEntity> contentList;

    public List<TopicContentEntity> getContentList() {
        return contentList;
    }

    public void setContentList(List<TopicContentEntity> contentList) {
        this.contentList = contentList;
    }
}
